package com.jqq.date_;

import java.util.Calendar;

/**
 * @author 姬倩倩
 * @version 1.0
 */
public class Calendar01 {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        System.out.println(c);
        System.out.println("年: "+c.get(Calendar.YEAR));
        System.out.println("月: "+(c.get(Calendar.MONTH)+1));
        System.out.println("日: "+c.get(Calendar.DAY_OF_MONTH));
        System.out.println("小时: "+c.get(Calendar.HOUR_OF_DAY));
        System.out.println("分钟: "+c.get(Calendar.MINUTE));
        System.out.println("秒: "+c.get(Calendar.SECOND));
    }
}
